<head>
	<link rel="stylesheet" href="assets/css/blog.css">
</head>
<div class='c-box-600 c-box c-box-left' id='blog-post'>
	<h1><?PHP
	echo $blog->current_blog['title'];
	?></h1>
	<hr />
	  <div class="blog-add-this">
			<!-- AddThis Button BEGIN -->
				<div class="addthis_toolbox addthis_default_style ">
				<a class="addthis_button_preferred_1"></a>
				<a class="addthis_button_preferred_2"></a>
				<a class="addthis_button_compact"></a>
				<a class="addthis_counter addthis_bubble_style"></a>
				</div>
				<script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script>
				<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4e0349103e309c97"></script>
			<!-- AddThis Button END -->
		</div>
		<div class="blog-date-posted">
			<?php 
			
			$date_timestamp=wp_mktime($blog->current_blog['start']);	
			echo "Posted: ".date("M j",$date_timestamp);
		
			?>
		</div>
	<hr />
	
	<div class='blog-image-box'><img src="<?PHP echo ap($blog->current_blog['image']);?>" title="<?PHP echo $blog->current_blog['title'];?>"> </div>
		<?PHP
		echo $blog->current_blog['content'];
		?>
	<div class="author-box">
		<h4>By: <a href="allview/18?aid=<?php echo $author['id']; ?>"><?php echo $author['name']; ?></a><h4>
		<h4>Keywords: <a href="allview/18?aid=<?php echo $author['id']; ?>"><?php echo $author['name']; ?></a>&nbsp;<a href="<?php echo "blogview"; ?>/18">
		blogs
		</a>
		<?php 
			$keyword_data = $blog->current_blog['meta_keywords'];
			if(!empty($keyword_data)){ 
			$keywords =  explode(",",$keyword_data);
			 foreach($keywords as $k)
			 {
				?>
					<a href="search/18?search=<?php echo $k; ?>"><?php echo $k." "; ?></a>
				<?php
			 }
		 } 
		 ?>
		<h4>
	</div>	
	</div>
	
	<div class='c-box c-box-300 c-box-right c-box-latest-videos' id='c-latest-blogs'>
		<h3>What's New</h3>
		<?PHP
		$items=0;

		foreach($videos as $x)
		{

			if($items <= 2 && !empty($x['title']) && ($x['type']=='video') )
			{


				?>

					<li>

									<div class='c-box-latest-item-text-bida'><a href='play/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>' class="popoutplayer c-box-latest-link" ><?PHP  echo $x['title']."<br />";?></a>
									</div>
							<div class='c-box-latest-item-image' style="background-image:url('<?PHP echo ap($x['thumb']);?>');">
								<a href='play/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>' class="popoutplayer">
									<img src="assets/images/play-mini.png" width="60" height="24" alt="Play Mini">
								</a>
							</div>





					</li>
				<?PHP
				$items++;
			}


		}

		?>
	
	</div>

	<div class='c-box c-box-300 c-box-right' id='c-more-blogs'>
		<h3>More Blogs</h3>
		<?PHP
		foreach($blog->items as $x)
		{
		$date_timestamp=wp_mktime($x['start']);	
			if($x['post_type']=='blog')
			{
				
					$date_timestamp=wp_mktime($x['start']);	
				
				?>

					<li>
						<a href='blog/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>' title="<?PHP  echo strip_tags($x['secondary']);?>"><?PHP  echo $x['title']." ";?></a>
						<span class='blog-date'><?PHP echo date("M j",$date_timestamp);?></span>
					</li>
				<?PHP
				}


		}
	
		?>
	<li class="more-right">
          	<a href="blogview/<?php echo $parent['id']; ?>">More Blogs</a>
          </li>
	</div>
	<div class='c-box c-box-300 c-box-right' id='c-more-blogs'>
		<h3>Features</h3>
		<?PHP
		foreach($blog->items as $x)
		{
		$date_timestamp=wp_mktime($x['start']);	
			if($x['post_type']=='article')
			{
				
			$date_timestamp=wp_mktime($x['start']);	
					
				?>

					<li>
						<a href='article/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>' title="<?PHP  echo strip_tags($x['secondary']);?>"><?PHP  echo $x['title']." ";?></a>
						<span class='blog-date'><?PHP echo date("M j",$date_timestamp);?></span>
					</li>
				<?PHP
				}


		}
	
		?>
	<li class="more-right">
          	<a href="features/<?php echo $parent['id']; ?>">More Features</a>
          </li>
	</div>

<div class='c-box c-box-300 c-box-right' id='c-more-blogs'>
		<h3>Reviews</h3>
		<?PHP
		foreach($blog->items as $x)
		{
			if($x['post_type']=='review')
			{
				
					$date_timestamp=wp_mktime($x['start']);	
					
				?>

					<li>
						<a href='review/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>' title="<?PHP  echo strip_tags($x['secondary']);?>"><?PHP  echo $x['title']." ";?></a>
						<span class='blog-date'><?PHP echo date("M j",$date_timestamp);?></span>
					</li>
				<?PHP
				}


		}
	
		?>
	<li class="more-right">
          	<a href="reviewview/<?php echo $parent['id']; ?>">More Reviews</a>
          </li>
	</div>
<div class='c-box-600 c-box c-box-left' id='fb-comments-box'>
	<h3>Comments</h3>
	<fb:comments xid="<?PHP echo $content_tag;?>" numposts="10" width="620" publish_feed="true"></fb:comments>
</div>
